package com.meevle.events
{
        import flash.events.Event;

        public class Red5ConnectionEvent extends Event
        {
        	
        	public static const CONNECT_FAILED:String = "connectFailed";
        	public static const CONNECT_SUCCESS:String = "connectSuccess";
        	public static const CONNECT_REJECTED:String = "connectRejected";
        	public static const CONNECT_CLOSED:String = "connectClosed";
        	public static const CONNECT_INVALID_APP:String = "connectInvalidApp";
        	public static const CONNECT_APP_SHUTDOWN:String = "connectAppShutdown";
        	public static const DISCONNECTED:String = "disconnected";
        	public static const SECURITY_ERROR:String = "securityError";
        	
            public var code:String;
    
            public function Red5ConnectionEvent(type:String, code:String) {
                super(type);
                this.code = code;
            }
            
            override public function clone():Event {
                return new Red5ConnectionEvent(type, code);
            }
    }
}